package com.longrise.android.byjk.plugins.tabfirst;

import com.longrise.LEAP.Base.Objects.EntityBean;
import com.longrise.common.base.BasePresenter;
import com.longrise.common.base.BaseView;
import com.longrise.android.byjk.model.HomeMultipleItem;

import java.util.List;

/**
 * Created by callxkj on 2017/2/22.
 * 首页contract
 */

public interface HomeContract {

    interface View extends BaseView {
        void showToast(String msg);

        void refreshBanner(EntityBean[] beans);

        void refreshHead_rcv(EntityBean[] beans);

        void refreshHome_rcv(EntityBean[] beans, List<HomeMultipleItem> items);

//        void refreshMarqueeView(EntityBean[] msgs);

        void refreshComplete();

        void showSignDialog(String acquiredscore,String qdcounts,String signflag);

        void showLoadingDefaultPage();

        void dismissLoadingDefaultPage();

        void toShowAd(EntityBean[] mImageUrls);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract  void refreshData();
        abstract void requestSignScoredToday();
        abstract  void getHomeAdaddr();
    }

}
